/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import com.alibaba.fastjson.JSONArray;
import lombok.Builder;
import lombok.experimental.Tolerate;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.transaction.Transactional;
import java.util.List;

/**
 * ClassName: District <br/>
 * Function: 区域 <br/>
 * date: 2018-11-20 13:20:11 <br/>
 *
 * @author liuwenjin
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="districts")
public class District extends MerchantGroupBaseTreeEntity<District> {

	private static final long serialVersionUID = 1L;

	@Transient
	private String no = "";


	@Transient
	private Boolean iBranch = null;



    @Tolerate
	public District() {
		
	}
    @Tolerate
	public District(Long id){
    	super.setId(id);
    }

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public Boolean getiBranch() {
		return iBranch;
	}

	public void setiBranch(Boolean iBranch) {
		this.iBranch = iBranch;
	}
}
